
<script language="javascript" type="text/javascript">
	
	function getValueSingle(kode, nama) {
		try {
			parent.parent._obj_fSendValue(kode, nama, 'id_divisi_karyawan', 'divisi_karyawan');
		}
		catch(e) { alert(e.message); }
		parent.parent.focus();

		<?php echo CloseGB(false); // close grebox?>
                 
	}
</script>

<h3 class="title-popup">Data Divisi</h3>

<div class="DivTable">
<table class="GridTable">
<tr class="GridHeader">
<td>No.</td>
<td>Nama Divisi</td>
<td>Singkatan Divisi</td>
</tr>
<?php

if ($numRows > 0) {
                $nomor = $offset;
                foreach ($result as $row) {
                    $nomor++;
		
		$styleTR = "GridItem1";

?>
		<tr class="<?php echo  $styleTR;?>" onclick="getValueSingle('<?php echo $row->id_divisi;?>', '<?php echo $row->divisi;?>')">
		<td><?php echo  $nomor;?></td>
		<td><?php echo  $row->divisi;?><input type="hidden" name="vNama" value="<?php echo str_replace("'", "\'", $row->divisi); ?>" /></td>
		<td><?php echo  $row->divisi_sname;?></td>
		</tr>
<?php
	}

}
else {
?>
	<tr class="GridItem1">
		<td colspan="3">Tidak ada data</td>
	</tr>

<?php
}
?>
</table>
</div>

<br class="bersih" />
